<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "new_column".
 *
 * @property string $id
 * @property string $name
 * @property string $message
 */
class NewColumn extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'new_column';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['name', 'message'], 'required'],
            [['name'], 'string', 'max' => 15],
            [['message'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => '名称',
            'message' => '简介',
        ];
    }
}
